package com.nbufe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nbufe.domain.ResponseResult;
import com.nbufe.domain.dto.process.AddEmissionOriginDto;
import com.nbufe.domain.dto.process.AddProcessDto;
import com.nbufe.domain.dto.process.EditEmissionDto;
import com.nbufe.domain.dto.process.QueryEmissionOriginDetailVo;
import com.nbufe.domain.entity.Process;
import com.nbufe.domain.vo.process.ProcessEmissionOriginVo;

import java.util.List;


/**
 * 工序表(Process)表服务接口
 *
 * @author luzhiheng
 * @since 2023-12-26 15:11:29
 */
public interface ProcessService extends IService<Process> {

    /**
     * 查询所有工序及对应的排放源数据
     *
     * @return
     */
    List<ProcessEmissionOriginVo> queryAllProcess();

    /**
     * 根据工序id删除工序
     * @param id 工序id
     */
    void deleteProcessById(Long id);

    /**
     * 添加工序
     * @param dto
     */
    void addProcess(AddProcessDto dto);

    /**
     * 添加能源材料
     * @param dto
     */
    void addEmissionOrigin(AddEmissionOriginDto dto);

    /**
     *根据排放源id查询详情
     * @param id
     * @return
     */
    QueryEmissionOriginDetailVo queryEmissionOriginDetail(Long id);

    /**
     * 编辑能源材料
     * @param dto
     */
    void editEmissionOrigin(EditEmissionDto dto);
}

